package com.chenfeng.ego.sso.dao.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;
import com.chenfeng.ego.sso.dao.JedisDao;

import redis.clients.jedis.JedisCluster;
@Repository
public class JedisDaoImpl implements JedisDao
{

	@Resource
	private JedisCluster jedisClients;
	@Override
	public String set(String key, String value)
	{

		return jedisClients.set(key, value);
	}

	@Override
	public String get(String key)
	{

		return jedisClients.get(key);
	}

	@Override
	public long expire(String key,int time)
	{
	
		return jedisClients.expire(key, time);
	}

	@Override
	public Long del(String key)
	{
		// TODO Auto-generated method stub
		return jedisClients.del(key);
	}

}
